Skip to content

Instantly share code, notes, and snippets.

πŸ§‘β€πŸ’» Interviewer Guide: Ransom Note (UMPIRE Method)

https://leetcode.com/problems/ransom-note/

πŸ“Œ Problem Statement

Given two strings ransomNote and magazine,
Return True if ransomNote can be constructed using the letters from magazine, False otherwise.

Each letter in magazine can only be used once in ransomNote.


// Twitter/X Post Stats Logger
// This script monitors for new posts and logs their statistics
const loggedPosts = new Set();
let languageFilter = 'en'; // Default to English only
let maxAgeHours = 6; // Default to 6 hours maximum age
// Opacity formula parameters (adjustable)
let opacityConfig = {
k: 0.00012, // Steepness of curve (increased for more sensitivity)
@bradtraversy
bradtraversy / terminal-commands.md
Last active November 22, 2026 03:07
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@domato153
domato153 / dcuidfilter.js
Created July 21, 2025 09:14
dc 깑계 차단기
// ==UserScript==
// @name DCInside μœ μ € κΈ€+λŒ“κΈ€ ν•©μ‚° ν•„ν„° (μžλ™ κ°€λ¦Ό)
// @namespace http://tampermonkey.net/
// @version 1.2
// @description μœ μ €μ˜ κΈ€+λŒ“κΈ€ 합이 κΈ°μ€€ μ΄ν•˜μΌ 경우 ν•΄λ‹Ή μœ μ €μ˜ 글을 κ°€λ¦½λ‹ˆλ‹€.
// @author yourname
// @match https://gall.dcinside.com/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_registerMenuCommand
@karpathy
karpathy / microgpt.py
Last active November 22, 2026 03:00
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@asialive88casino
asialive88casino / README.md
Created November 22, 2026 02:41
[INFO] AsiaLive88 - Platform Live Casino & Slot Online Indonesia

information about a live casino and online slot platform called AsiaLive88.

Summary:

  • Live casino & online slot platform
  • Indonesian language interface
  • Easy login & registration
  • 24/7 support
  • Member bonuses
@oshinop
oshinop / artifact-rules.md
Last active November 22, 2026 02:41
Artifact rules for coding agents

Artifact rules for coding agents

Why

Coding agents tend to write their conversation into the product. Your decisions, their implementation details, notes proving a requirement was met, and instructions about options that were later dropped all end up in the app's interface, its docs, or in prompts and skills. The end user was never in that conversation, so all of it is noise to them, and you end up asking for each piece to be removed by hand.

This happens with every model family. Later agents tend to keep text they didn't write rather than question it, so it piles up.

How to use

@wincent
wincent / agent-sandboxen.md
Last active November 22, 2026 02:36
List of coding agent sandboxes 2026-05

Coding Agent Sandboxes β€” Comprehensive List

Compiled from awesome-lists (restyler/awesome-sandbox, webcoyote/awesome-AI-sandbox, bureado/awesome-agent-runtime-security) and a survey of vendor blogs / field guides published through 2026. Grouped by isolation primitive and then by deployment model.

1. OS-level primitives (no container, no VM)

These rely on kernel/userland features to constrain a normal host process. Lowest overhead, weakest boundary.

  • macOS Seatbelt / sandbox-exec β€” Apple's TrustedBSD-based MAC framework. Used directly by Codex CLI, Gemini CLI, and underneath Anthropic's srt.
  • Linux Landlock β€” Unprivileged filesystem/network LSM; default backend for Codex CLI on Linux.
@HectorPulido
HectorPulido / docker-compose.yaml
Last active November 22, 2026 02:32
Jellyfin automation
services:
qbittorrent:
container_name: qbittorrent
image: lscr.io/linuxserver/qbittorrent:latest
networks:
- mynetwork
environment:
- PUID=1000
- PGID=1000
- TZ=America/Bogota
@TunqStorage
TunqStorage / TrustFFlag.json
Created November 22, 2026 02:22
File Json FFlag Roblox
{
"name": "OnlyUse",
"flags": [
{
"name": "FIntDebugTextureManagerSkipMips",
"value": "10",
"type": "int",
"enabled": true,
"bind": "",
"unapply_bind": "",